import 'dart:async';
import 'package:args/command_runner.dart';
import 'package:gate_cli/utils/pubspec_uitl.dart';

/// Author: Shper
/// Created: 2023/9/6
class PubspecCommand extends Command<String> {

  PubspecCommand() {
    // argParser.addOption('records', abbr: 'v', defaultsTo: 'true', help: '记录 pubspec.lock');
  }

  @override
  String get description => "pubspec.lock 文件处理";

  @override
  String get name => "pubspec";

  @override
  FutureOr<String>? run() async {

    // 记录 pubspec.lock 文件
    await PubspecUtil.recordsPubspecLockFile();

    return "Success！";
  }



}
